﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Schema;
using System.IO;

namespace GenIX
{
    public partial class MainForm : Form
    {
        
        public MainForm()
        {
            InitializeComponent();
        }

        private void view_helpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
            
                HelpPath = Path.GetDirectoryName(Application.ExecutablePath) + "\\Help\\Help.chm";
                try
                {
                    if (File.Exists(HelpPath))
                        System.Diagnostics.Process.Start(HelpPath);
                    else
                        MessageBox.Show("Не найден файл Help.chm !", null, MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
                catch (FileNotFoundException hx)
                {
                    MessageBox.Show(hx.Message, "Файл недоступен!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            
        }

        private void EditLists(object sender, EventArgs e)
        {
            InItems form1 = new InItems();
            form1.Owner = this;
            try
            {
                form1.ShowDialog();
            }
            catch { }
        }


    }
}
